<?php


use Biz\service\GoodsHistory as sGoodsHistory;
use Biz\tools\GoodsExposureLog;

/**
 * @deprecated
 */
class BrowseHistoryAction extends ActionPlugin
{
    public function main()
    {

        $page = $this->getRequest()->getQuery('page', 1);


        $historyList = sGoodsHistory::getNearGoodsBrowseList($this->uid, 7, $page, 20);


        $this->setSuccess($historyList);
        GoodsExposureLog::addLog($this->getRequest(), $historyList);
    }

}
